x11: Set BackPixmap = None unconditionally
authorBenjamin Otte <otte@redhat.com>
Fri, 13 Jul 2018 16:59:01 +0000 (18:59 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 14 Jul 2018 03:27:54 +0000 (05:27 +0200)
Makes it more obvious what we actually want.

Related: #1134

gdk/x11/gdksurface-x11.c

index 0a7563efe8371dfbb91b6b9ee13258915ec5f050..f04f74d4868fc23f2949c69ea1c04212833d407e 100644 (file)
@@ -880,16 +880,8 @@ _gdk_x11_display_create_surface_impl (GdkDisplay    *display,
     {
       class = InputOutput;
 
-      if (gdk_display_is_rgba (display))
-        {
-          xattributes.background_pixel = 0;
-          xattributes_mask |= CWBackPixel;
-        }
-      else
-        {
-          xattributes.background_pixmap = None;
-          xattributes_mask |= CWBackPixmap;
-        }
+      xattributes.background_pixmap = None;
+      xattributes_mask |= CWBackPixmap;
 
       xattributes.border_pixel = BlackPixel (xdisplay, x11_screen->screen_num);
       xattributes_mask |= CWBorderPixel;